<extend name="Public/base"/><block name="body"><div class="Tool_Bar" id="AuthGroup_Bar">
<dl>
	<dt>用户组管理</dt>
    {$Main_Nav}
</dl>
</div>
<div style="display: none">
<form id="AuthGroup_Search_From" >
<fieldset class="Form_1 Form_2">
<div class="formitm">
	<label class="lab" for="for_title">用户组标题 ：</label>
	<div class="ipt"><input name="s_title"  id="for_title"type="text" class="easyui-textbox" style="height:30px;"></div>
</div><div class="formitm">
	<label class="lab" for="for_status">用户组状态 ：</label>
	<div class="ipt"><select name="s_status" id="for_s_status" class="easyui-combobox" style="height:30px;" data-options="url:'{:U("Admin/Function/get_field_option")}&f_id=34&r_type=json',valueField:'id',textField:'text',value:null"></select></div>
</div><div class="formitm">
	<label class="lab" for="for_sort">排序 ：</label>
	<div class="ipt"><input name="s_sort" id="for_sort" type="text" class="easyui-numberbox" style="height:30px;" data-options="precision:'0',decimalSeparator:'.',groupSeparator:',',required:false"></div>
</div></fieldset>
</form>
</div>
<table id="AuthGroup_Data_List"></table>
<script charset="utf-8" src="{:U('Admin/Function/get_field_option',array('f_id'=>'34','r_type'=>'json_list'))}"></script>
<script type="text/javascript">
$(function() {
	$("#AuthGroup_Data_List").datagrid({
		url : "{:U('AuthGroup/index')}",
		fit : true,
		striped : true,
		border : false,
		pagination : true,
		pageSize : 20,
		pageList : [ 10, 20, 50 ],
		pageNumber : 1,
		sortName : 'id',
		sortOrder : 'desc',
		toolbar : '#AuthGroup_Bar',
		singleSelect : true,
		frozenColumns:[[
			{field : 'id',title : 'ID',width : 40,sortable:true}
	
		]],
		columns : [[

			{field : "title",title : "用户组标题",width :120},
			
			{field : "status",title : "用户组状态",width :100,formatter: function (value, row, index) {
					return op_status[value];
			}},
			
			{field : "sort",title : "排序",width :100},
				

			{field : "operate",title : "操作",width : 200,formatter: function (value, row, index) {
				operate_menu='';
				
				<if condition="Is_Auth('Admin/AuthGroup/edit')">
				operate_menu = operate_menu+"<a href='<?php echo U('edit'); ?>&id="+row.id+"' >编辑</a>";
				</if>

				<if condition="Is_Auth('Admin/AuthGroup/del')">
				operate_menu = operate_menu+" | <a href='#' onclick=\"Data_Ajax('<?php echo U('del'); ?>&id="+row.id+"','AuthGroup_Data_List');\">删除</a>";
				</if>

				return operate_menu;
			}}
		]]
	});
})
<!-- 扩展数据 starp-->
<!-- 扩展数据 end-->
</script></block>